﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>婚礼优品 中国领先婚礼服务平台</title>
		<link rel="stylesheet" href="<%=path%>/css/grid.css" />
		<link rel="stylesheet" href="<%=path%>/css/style.css" />
		<link rel="stylesheet" href="<%=path%>/css/myspace.css" />
		<link rel="stylesheet" href="<%=path%>/css/index.css" />
		<script type="text/javascript"
			src="<%=path%>/scripts/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="<%=path%>/scripts/myspace.js"></script> 
		<script type="text/javascript">
	
$(document).ready( 
  	function(){
	  var typeV = $("#type").val();
	 //showImgDiv();
	 // if(typeV=="摄像师"){
	 //  showVideoDiv();}

    }
   );
  //主页user与other 切换
 function  showVideoDiv(){
	 $("#videoTable").attr("style","display:block");
	 $("#imgTable").attr("style","display:none");
 }
  function  showImgDiv(){
 $("#videoTable").attr("style","display:none");
 $("#imgTable").attr("style","display:block");
 }
  </script type="text/javascript">
	</head>

	<body>
	  <input id="type" name="type" type="hidden" value="${type}"/>
		<!-- nav start -->
          <%-- <div class="nav">
		
                 <div class="container_12 ">
			<div class="grid_12">
				<%@include file="/WEB-INF/web/common/header.jsp" %>
			</div>
		
		</div>
   
       </div>
 
     --%>
   <a href="<%=path %>/home">
    <%@include file="/WEB-INF/web/common/header.jsp" %>
   </a>
		<!-- nav end -->
		<!-- content start -->
		<div class="content">
			<div class="container_12">
				<div class="grid_3">
					<ul class="menu">
						<li>
							<div class="user-profile">
								<img class="head" src="${user.headPic }"/>
								<%--<ul class="info">
									<li><span class="label">用户名：</span>${user.username }</li>
									<li><span class="label">职业：</span>${user.type }</li>
									<li><span class="label">访问量：</span>${user.visitTimes }</li>
								</ul>
							--%>
							</div>
						</li>
						<li <s:if test="%{profileIndex==1}">class="selected"</s:if>>
							<a hidefocus="ture" title="基本信息" href="<%=path %>/space/me?uid=${uid}&profileIndex=1"
								class="lNAText bC">Basic Information<br>基本信息</a>
						</li>
						
					
						<li <s:if test="%{profileIndex==2}">class="selected"</s:if>>
							<a hidefocus="ture" title="视频样片" href="<%=path %>/space/me?uid=${uid}&profileIndex=2"
								class="lNAText bC">Video Samples<br>视频样片</a>
						</li>
					
							
						<s:if test="%{type=='婚礼摄影'}">
						<li <s:if test="%{profileIndex==8}">class="selected"</s:if>>
							<a hidefocus="ture" title="相册展示" href="<%=path %>/space/me?uid=${uid}&profileIndex=8"
								class="lNAText bC">Photo Samples<br>相册展示</a>
						</li>
						</s:if>
						
						
						
						
						
						<li <s:if test="%{profileIndex==3}">class="selected"</s:if>>
							<a hidefocus="ture" title="价格组成" href="<%=path %>/space/me?uid=${uid}&profileIndex=3"
								class="lNAText bC">Price Component<br>价格组成</a>
						</li>
						<li <s:if test="%{profileIndex==4}">class="selected"</s:if>>
							<a hidefocus="ture" title="优品评价"
								href="<%=path %>/space/me?uid=${uid}&profileIndex=4" class="lNAText bC">Our Evaluation<br>优品评价</a>
						</li>
						<li <s:if test="%{profileIndex==5}">class="selected"</s:if>>
							<a hidefocus="ture" title="服务流程" href="<%=path %>/space/me?uid=${uid}&profileIndex=5"
								class="lNAText bC">Service Process<br>服务流程</a>
						</li>
						<li <s:if test="%{profileIndex==6}">class="selected"</s:if>>
							<a s="" hidefocus="ture" title="档期查询"
								href="<%=path %>/space/me?uid=${uid}&profileIndex=6" class="lNAText bC">Schedule Query<br>档期查询</a>
						</li>
							<li <s:if test="%{profileIndex==7}">class="selected"</s:if>>
							<a s="" hidefocus="ture" title="联系优品"
								href="<%=path %>/space/me?uid=${uid}&profileIndex=7" class="lNAText bC">Contact Us<br>联系优品</a>
						</li>
						
					</ul>

				</div>
			
				<div class="grid_9">
					<div class="right">
						<s:if test="%{(profileIndex==1 || profileIndex==0) && user.profile1 != null}">
							<img src="<s:property value="user.profile1"/>"/>
						</s:if>
		
 <!--  ################ 婚礼相册 开始	################	-->				
                     
                       <!-- 如果是相册的话 显示此模块  开始-->	
						<s:if test="%{profileIndex==8}">
								<s:iterator value="%{ photoGroupList }" status="index">
									<div class="photo-box">
										<div class="thumbnail">
								            <a href="<%=path %>/photo/show?groupId=<s:property value='id'/>"><img src="<s:property value='url'/>" alt="" /></a>
								           
								            <div class="caption">
								              <h2><s:property value='name'/></h2>
								             
								             <s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
										       <a href="javascript:void(0)" groupid="<s:property value='id'/>" style="color:#000;font-size:14px;" id="groupEdit">编辑</a>
									        </s:if>
									         <s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
												<a href="javascript:void(0)" groupid="<s:property value='id'/>" style="color:#000;font-size:14px;" class="news-del">删除</a>
											</s:if>
											 </div>
								        </div>
							        </div>
							     </s:iterator>   
					     
								 	<s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
										
											<div class="container_12 news-manager-container">
												<a name="edit"></a>
												<div class="grid_12">
													内容：
													<input id="edit-title" type="text" maxlength="50" style="width:400px;line-height:20px;" />
												    <input id="edit-id" value="" type="hidden"/>
												</div>
												
												<div class="grid_12">
													封面：
													<input id="edit-pic" type="text"  style="width:400px;line-height:20px;" />
												</div>
											
												
												<div class="clear"></div>
											
												<div class="clear"></div>
												<div class="grid_12">
													<input type="hidden" id="userId" value="${uid}"/>
													<input id="addGroup" type="button" value="新建" style="width:65px;height:30px;margin:5px 100px 5px 5px;float:right;"/>
												
													<input id="saveGroup" type="button" value="保存" style="width:65px;height:30px;margin:5px 100px 5px 5px;float:right;"/>
												</div>
												<div class="clear"></div>
											</div>
											
										</s:if>
						</s:if>
				<!-- 如果是相册的话 显示此模块  结束-->
						
						<!-- 如果是视频的话 显示此模块   开始 -->
						<s:elseif test="%{profileIndex==2 && user.profile2 != null}">
								 <object id="videoTable"  style="dispaly:block" class="flashPlayer" width="424" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
			                         <param value="<s:property value="user.profile2"/>" name="movie"/>
			                         <param value="playMovie=true&auto=1&adss=0&isAutoPlay=true&autoPlay=true" name="flashVars"/>
			                         <param value="high" name="quality"/>
                         			 <embed width="718" height="450" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="<s:property value="user.profile2"/>?isAutoPlay=true">
                          		</object>
						</s:elseif>
						<!-- 如果是视频的话 显示此模块  结束-->
						
 <!--  ################ 婚礼相册 结束	################	-->									
						
						<s:if test="%{profileIndex==3 &&user.profile3 != null}">
							<img src="<s:property value="user.profile3"/>"/>
						</s:if>
						<s:if test="%{profileIndex==4 &&user.profile4 != null}">
							<img src="<s:property value="user.profile4"/>"/>
						</s:if>
						<s:if test="%{profileIndex==5 && user.profile5!= null}">
							<img src="<s:property value="user.profile5"/>"/>
						</s:if>
						<s:if test="%{profileIndex==6 }">
						    <h1 style="font:32px/1.231 '微软雅黑',arial,'宋体',sans-serif normal">档期安排  Data Time</h1>
						    <img src="<%=path %>/images/time.jpg" />
						    <h2>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="user.profile6"/></h2>							
						</s:if>
                         		 	<s:if test="%{profileIndex==7 && user.profile7!= null}">
							<img src="<s:property value="user.profile7"/>"/>
						</s:if>
					</div>
				</div>
				<div class="clear"></div>
				
			</div>
		</div>
		<!-- content end -->

		<!-- footer start 
		<div class="footer">
			<div class="container_12">
				<div class="grid_12 footer-bottom" style="background-color:#fff">
				<div class="bottom-bg">
					<p>COPYRIGHT © 2009 - 2012 WEDDINGEE COMPANY.ALL RIGHTS RESERVED</p>
				</div>
					<a hidefocus="ture" title="婚礼优品" href="<%=path %>/"><img
							alt="婚礼优品" src="<%=path %>/images/logo.jpg" class="logo"/> 
					</a>
				</div>
			</div>
		</div>
		<!-- footer end -->
		
		<div class="opt-btn-group">
			<a title="上一个" href="<%=path %>/space/findAnother?uid=${uid}&direction=1"><img
					alt="上一个" src="<%=path %>/images/pre.jpg" class="logo"/>
			</a>
             	 	<a title="试试缘分" href="<%=path %>/space/findRandom?uid=${uid}"><img
					alt="试试缘分" src="<%=path %>/images/random.jpg" class="logo"/>
			</a>
                	<a title="下一个" href="<%=path %>/space/findAnother?uid=${uid}&direction=0"><img
					alt="下一个" src="<%=path %>/images/next.jpg" class="logo"/>
			</a>
		</div>
		<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F08522dc4f17a9aa963ba74d5a1baa9f0' type='text/javascript'%3E%3C/script%3E"));
</script>
	</body>
</html>
